﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:System="clr-namespace:System;assembly=mscorlib"
    xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing"
    xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
    xmlns:ee="http://schemas.microsoft.com/expression/2010/effects"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d">

    <ResourceDictionary.MergedDictionaries>
        <!--<ResourceDictionary Source="Brushes.xaml" />
        <ResourceDictionary Source="Fonts.xaml" />-->
    </ResourceDictionary.MergedDictionaries>

    <Style x:Key="DefaultFrameworkElementStyle" TargetType="FrameworkElement">
        <Setter Property="VerticalAlignment" Value="Center" />
    </Style>

    <Style x:Key="DefaultControlStyle" TargetType="Control" BasedOn="{StaticResource DefaultFrameworkElementStyle}">
        <Setter Property="FontFamily" Value="Calibri" />
    </Style>

    <Style x:Key="DefaultCheckboxStyle" TargetType="CheckBox" BasedOn="{StaticResource DefaultControlStyle}">
        <Setter Property="VerticalAlignment" Value="Center" />
    </Style>

    <Style x:Key="DefaultLabelStyle" TargetType="Label" BasedOn="{StaticResource DefaultControlStyle}">
        <Setter Property="VerticalAlignment" Value="Center" />
    </Style>

    <Style x:Key="DefaultTextBlockStyle" TargetType="TextBlock" BasedOn="{StaticResource DefaultFrameworkElementStyle}">
        <Setter Property="Foreground" Value="Purple" />
    </Style>

    <Style x:Key="DefaultButtonStyle" TargetType="Button" BasedOn="{StaticResource DefaultControlStyle}">
        <Setter Property="HorizontalAlignment" Value="Center" />
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="Padding" Value="5,2" />
        <!--<Setter Property="Background" Value="Purple" />
        <Setter Property="Foreground" Value="White" />-->
    </Style>

    <Style x:Key="DefaultMenuItemStyle" TargetType="MenuItem" BasedOn="{StaticResource DefaultControlStyle}">
        <Setter Property="AlternationCount" Value="1" />
        <Setter Property="ToolTip" Value="{Binding RelativeSource={x:Static RelativeSource.Self}, Path=Header}" />
        <!--<Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="MenuItem">
                    <TextBlock Text="{TemplateBinding Header}" Width="{TemplateBinding Width}" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>-->
    </Style>

    <!--Implicit declarations for default styles on controls-->
    <Style TargetType="Control" BasedOn="{StaticResource DefaultFrameworkElementStyle}" />
    <Style TargetType="CheckBox" BasedOn="{StaticResource DefaultCheckboxStyle}" />
    <Style TargetType="Label" BasedOn="{StaticResource DefaultLabelStyle}" />
    <Style TargetType="TextBlock" BasedOn="{StaticResource DefaultTextBlockStyle}" />
    <Style TargetType="Button" BasedOn="{StaticResource DefaultButtonStyle}" />
    <Style TargetType="MenuItem" BasedOn="{StaticResource DefaultMenuItemStyle}" />

</ResourceDictionary>
